<?php
class Dijkstra_Node{
	
	private $name;
	
	private static $autoIndex = 0;
	
	public function Dijkstra_Node($name = null){
		$this->name = ($name === null) ? self::$autoIndex++ : $name;
	}
	
	public function getName(){
		return $this->name;
	}
	
	public function __toString(){
		return $this->getName();
	}
}